package com.netposa.datawarehouse.bodysearch.web.model;

public class BodyDownloadCondition extends BodyCondition {
   private String recordIds;
   private Integer downloadSize;
   private Boolean downloadPics;
   private String fileName;
   private String imgFlag = "0";

   public String getRecordIds() {
      return this.recordIds;
   }

   public Integer getDownloadSize() {
      return this.downloadSize;
   }

   public Boolean getDownloadPics() {
      return this.downloadPics;
   }

   public String getFileName() {
      return this.fileName;
   }

   public String getImgFlag() {
      return this.imgFlag;
   }

   public void setRecordIds(String recordIds) {
      this.recordIds = recordIds;
   }

   public void setDownloadSize(Integer downloadSize) {
      this.downloadSize = downloadSize;
   }

   public void setDownloadPics(Boolean downloadPics) {
      this.downloadPics = downloadPics;
   }

   public void setFileName(String fileName) {
      this.fileName = fileName;
   }

   public void setImgFlag(String imgFlag) {
      this.imgFlag = imgFlag;
   }

   public boolean equals(Object o) {
      if (o == this) {
         return true;
      } else if (!(o instanceof BodyDownloadCondition)) {
         return false;
      } else {
         BodyDownloadCondition other = (BodyDownloadCondition)o;
         if (!other.canEqual(this)) {
            return false;
         } else {
            label71: {
               Object this$recordIds = this.getRecordIds();
               Object other$recordIds = other.getRecordIds();
               if (this$recordIds == null) {
                  if (other$recordIds == null) {
                     break label71;
                  }
               } else if (this$recordIds.equals(other$recordIds)) {
                  break label71;
               }

               return false;
            }

            Object this$downloadSize = this.getDownloadSize();
            Object other$downloadSize = other.getDownloadSize();
            if (this$downloadSize == null) {
               if (other$downloadSize != null) {
                  return false;
               }
            } else if (!this$downloadSize.equals(other$downloadSize)) {
               return false;
            }

            label57: {
               Object this$downloadPics = this.getDownloadPics();
               Object other$downloadPics = other.getDownloadPics();
               if (this$downloadPics == null) {
                  if (other$downloadPics == null) {
                     break label57;
                  }
               } else if (this$downloadPics.equals(other$downloadPics)) {
                  break label57;
               }

               return false;
            }

            Object this$fileName = this.getFileName();
            Object other$fileName = other.getFileName();
            if (this$fileName == null) {
               if (other$fileName != null) {
                  return false;
               }
            } else if (!this$fileName.equals(other$fileName)) {
               return false;
            }

            Object this$imgFlag = this.getImgFlag();
            Object other$imgFlag = other.getImgFlag();
            if (this$imgFlag == null) {
               if (other$imgFlag == null) {
                  return true;
               }
            } else if (this$imgFlag.equals(other$imgFlag)) {
               return true;
            }

            return false;
         }
      }
   }

   protected boolean canEqual(Object other) {
      return other instanceof BodyDownloadCondition;
   }

   public int hashCode() {
      
      int result = 1;
      Object $recordIds = this.getRecordIds();
      result = result * 59 + ($recordIds == null ? 43 : $recordIds.hashCode());
      Object $downloadSize = this.getDownloadSize();
      result = result * 59 + ($downloadSize == null ? 43 : $downloadSize.hashCode());
      Object $downloadPics = this.getDownloadPics();
      result = result * 59 + ($downloadPics == null ? 43 : $downloadPics.hashCode());
      Object $fileName = this.getFileName();
      result = result * 59 + ($fileName == null ? 43 : $fileName.hashCode());
      Object $imgFlag = this.getImgFlag();
      result = result * 59 + ($imgFlag == null ? 43 : $imgFlag.hashCode());
      return result;
   }

   public String toString() {
      return "BodyDownloadCondition(recordIds=" + this.getRecordIds() + ", downloadSize=" + this.getDownloadSize() + ", downloadPics=" + this.getDownloadPics() + ", fileName=" + this.getFileName() + ", imgFlag=" + this.getImgFlag() + ")";
   }
}
